package cn.genmer.test.security.model;

import cn.genmer.test.security.recordlog.annotation.LogTag;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @program: securitydeomo
 * @description:
 * @author: Genmer
 * @create: 2021-08-03 23:51
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("TEST_USER")
public class User {
    @TableId(type= IdType.AUTO)
    private Long id;
    @LogTag(
            name = "用户名称"
    )
    private String name;
    @LogTag(
            name = "用户年龄"
    )
    private String gender;

    public User(String name,String gender){
        this.name = name;
        this.gender = gender;
    }

    public void say(String msg){
        System.out.println(msg);
    }
}
